<script>
export default {
  name: 'MyHome',
  mounted() {
    console.log("+++++++++++++",this);
    console.log("home被创建了")
  },
  destroyed() {
    console.log("home被销毁了")
  }
}
</script>

<template>
  <div>
    <h2>我是Home的内容</h2>
    <div>
      <ul>
       <li>
         <router-link active-class="active" to="/home/message">消息</router-link>
       </li>
        <li>
          <router-link active-class="active" to="/home/news">新闻</router-link>
        </li>
      </ul>
    </div>
    <router-view></router-view>
  </div>
</template>

<style>

</style>